import "./assets/main.css";

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import Toast from "./components/Toast/index";
import { createPinia } from "pinia";
import "amfe-flexible";

import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);

app.config.globalProperties.$toast = Toast;
app.use(router);
app.use(pinia);

app.mount("#app");
